// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import ElementUI from 'element-ui'
import VueRouter from 'vue-router'
import routes from './routers'
import 'element-ui/lib/theme-chalk/index.css'
import 'element-ui/lib/theme-chalk/display.css'
import './assets/style.css'
import i18n from './i18n/i18n'
import config from './config'
import vHeader from './components/v-header'
import vFooter from './components/v-footer'
import axios from 'axios'
import VueAxios from 'vue-axios'
import VueParticles from 'vue-particles'  

Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.use(VueRouter)
Vue.use(VueAxios, axios)
Vue.use(VueParticles)  

Vue.component('v-header', vHeader)
Vue.component('v-footer', vFooter)

console.log(process.env)

const router = new VueRouter({
  routes,
  mode: 'history'
})


new Vue({
  router,
  i18n,
  render: h => h(App)
}).$mount('#app')